import request from '@/utils/request'


export function listMonitor(query) {
  return request({
    url: '/video/monitor/list',
    method: 'get',
    params: query
  })
}



export function addMonitor(data) {
  return request({
    url: '/video/monitor/add',
    method: 'post',
    data: data
  })
}


export function updateMonitor(data) {
  return request({
    url: '/video/monitor/edit',
    method: 'post',
    data: data
  })
}


export function getMonitor(id) {
  return request({
    url: '/video/monitor/' + id,
    method: 'get'
  })
}


export function delMonitor(ids) {
  return request({
    url: '/video/monitor/' + ids,
    method: 'post'
  })
}
